import App from './App'
import service from './static/service.js'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
Vue.prototype.$uploadImg = service.uploadImg
Vue.prototype.service = service.service
Vue.prototype.IM_Server = new service.IM_Server()
Vue.prototype.IMLogin = service.IMLogin
Vue.prototype.baseUrl = service.baseUrl
Vue.prototype.imageUrl = service.ImageUrl
Vue.prototype.customer_server = service.customer_server

var jweixin = require('@/static/js/jweixin-module')
	jweixin.ready(function(){  
	    // TODO  
	});
Vue.prototype.$wx  = jweixin;
	
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif